package com.woniu.springbootrbac.service;

import com.woniu.springbootrbac.dto.RoleDto;
import com.woniu.springbootrbac.entity.SysRole;

import java.util.List;

public interface RoleService {

    int deleteByPrimaryKey(Long id);

    int insert(SysRole record);

    int insertSelective(SysRole record);

    SysRole selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SysRole record);

    int updateByPrimaryKey(SysRole record);

    List<SysRole> selAll();

    List<Integer> selectRolesIdByUid(Long uid);

    int insertRole(RoleDto roleDto);

}
